package com.swt.service.T_service.impl;

import com.swt.dao.Tdao.SigInDao;
import com.swt.domain.Aboutcourse;
import com.swt.domain.Course;
import com.swt.service.T_service.SigInService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
@Service(value = "TSigInService")
@Transactional
public class SigInServiceImpl implements SigInService {
    @Resource(name = "TSigInDao")
    private SigInDao sigInDao;
    @Override
    public List<Course> sigInQuery(int courseClubid, String courseTime, int clubClubId) {
        return sigInDao.sigInQuery(courseClubid,courseTime,clubClubId);
    }

    @Override
    public List<Aboutcourse> sigInQueryService(int courseId) {
        return sigInDao.sigInQueryDao(courseId);
    }

    @Override
    public boolean SigInUpdateStatusService(int Id, String Status) {
        return sigInDao.SigInUpdateStatus(Id,Status);
    }

    public SigInDao getSigInDao() {
        return sigInDao;
    }

    public void setSigInDao(SigInDao sigInDao) {
        this.sigInDao = sigInDao;
    }
}
